package haiyangwangwork.day02.homework;

public class Main {
    public static void main(String[] args) {
//        Polygon p=new Polygon(3);
//        p.getNumberOfSides();
//        Triangle t=new Triangle(3,4);
//        t.getArea();
        RightTriangle r=new RightTriangle(6,8);
        System.out.println(r);
        r.getArea();
//        System.out.println("三角形面积为："+area);
        r.getNumbersOfSides();

//        r.getArea();
//        r.getNumberOfSides();

    }
}
